<?php
include_once "model.php";
try {
	$model->try_to_add($_POST[Q_ID], $_POST[Q_LOCKED_UNTIL], $_POST[NODE_CONTENT]);
	header('Location: /fractal-narratives/index.php');
}
catch (Exception $e) {
	header('Location: /fractal-narratives/error.php');
}
?>
